import 'package:fish_redux/fish_redux.dart';

enum OrderListViewAction {
  action,
  onTapTime,
  onLoad,
  onGetData,
}

class OrderListViewActionCreator {
  static Action onAction() {
    return const Action(OrderListViewAction.action);
  }

  static Action onTapTime() {
    return const Action(OrderListViewAction.onTapTime);
  }

  static Action onLoad(page) {
    return Action(OrderListViewAction.onLoad, payload: page);
  }

  static Action onGetData(page) {
    return Action(OrderListViewAction.onGetData, payload: page);
  }
}
